package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataRecommendRecordDao;
import io.renren.entity.DataRecommendRecordEntity;
import io.renren.service.DataRecommendRecordService;



@Service("dataRecommendRecordService")
public class DataRecommendRecordServiceImpl implements DataRecommendRecordService {
	@Autowired
	private DataRecommendRecordDao dataRecommendRecordDao;
	
	@Override
	public DataRecommendRecordEntity queryObject(String id){
		return dataRecommendRecordDao.queryObject(id);
	}
	
	@Override
	public List<DataRecommendRecordEntity> queryList(Map<String, Object> map){
		return dataRecommendRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataRecommendRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(DataRecommendRecordEntity dataRecommendRecord){
		dataRecommendRecordDao.save(dataRecommendRecord);
	}
	
	@Override
	public void update(DataRecommendRecordEntity dataRecommendRecord){
		dataRecommendRecordDao.update(dataRecommendRecord);
	}
	
	@Override
	public void delete(String id){
		dataRecommendRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataRecommendRecordDao.deleteBatch(ids);
	}

	@Override
	public void deleteByMonth(String month) {
		// TODO Auto-generated method stub
		dataRecommendRecordDao.deleteByMonth(month);
	}
	
}
